package com.java.day04.arr;

import java.util.Scanner;

/**
 * 循环录入五个人的名字到数组中,并遍历出来
 */
public class Demo03 {
    public static void main(String[] args) {
        System.out.println("请输入:");
        Scanner scanner = new Scanner(System.in);
        String[] name = new String[5];
        for (int i = 0; i < name.length; i++) {
            name[i] = scanner.next();
        }

        ArrUtils.printArrString(name);
    }
}
